package com.yc.cloud.admin.dto.request;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import jakarta.validation.constraints.NotBlank;

/**
 * MediaKit 获取截图请求DTO
 * 
 * @author kinggu
 * @since 2025-01-XX
 */
@Data
@ApiModel(value = "MediaKitSnapReqDTO", description = "获取截图请求")
public class MediaKitSnapReqDTO {

    @ApiModelProperty(value = "需要截图的URL", required = true, example = "rtmp://127.0.0.1/live/test")
    @NotBlank(message = "截图URL不能为空")
    private String url;

    @ApiModelProperty(value = "截图方式：ffmpeg-使用FFmpeg截图, mediakit-使用MediaKit API截图", 
                      example = "mediakit", 
                      allowableValues = "ffmpeg,mediakit")
    private String snapMethod = "mediakit"; // 默认使用 MediaKit API
}
